package com.twp.auth.myexecption;

import com.twp.auth.constants.ResultCodeConstants;
import org.springframework.security.oauth2.common.exceptions.InvalidTokenException;

/**
 * Created by tanweiping on 17/8/23.
 */
public class LogoutTokenException extends InvalidTokenException {
    public LogoutTokenException(String msg, Throwable t) {
        super(msg, t);
    }
    public LogoutTokenException(String msg) {
        super(msg);
    }

    public int getHttpErrorCode() {
        return 401;
    }

    public String getOAuth2ErrorCode() {
        return ResultCodeConstants.LOGOUT;
    }
}
